import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import 'element-theme-default';
import {i18n} from 'element-react'
import locale from 'element-react/src/locale/lang/zh-CN'
import {AppContent} from "./component/AppContent";
import {Route, BrowserRouter} from 'react-router-dom';

i18n.use(locale);
ReactDOM.render(<BrowserRouter>
    <Route path={'/'} component={AppContent}/>
</BrowserRouter>, document.getElementById("root"));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
